package com.sfac.springboot.modules.account.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sfac.springboot.modules.account.entity.Role;
import com.sfac.springboot.modules.common.vo.Result;
import com.sfac.springboot.modules.common.vo.Search;

/**
 * @author jzq
 * @date 2022/8/27 11:06
 */
public interface RoleService {

    Result<Role> insertRole(Role role);

    Result<Role> updateRole(Role role);

    Result<Object> deleteRoelById(int id);

    Role getRoleById(int id);

    List<Role> getRolesByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(Search search);
}

